package 补充.泛型;

import java.util.ArrayList;
import java.util.List;
class Person{}
class Man extends Person{}
public class TestGeneric3 {
    public static void main(String[] args) {
        List<? extends Person> list = null;
        list = new ArrayList<Person>();
        list = new ArrayList<Man>();
        List<? super Man> list2 = null;
        list2=new ArrayList<Person>();
        list2=new ArrayList<Man>();

    }
}
